import { type RouteConfig, index, layout, prefix, route } from "@react-router/dev/routes";

export default [
  layout("components/layout.tsx", [
    index("pages/home.tsx"),
    route('disable', "pages/disable-form.tsx"),
    route('drag-test', "pages/drag-test.tsx"),
    route('tabledata', "pages/tabledata.tsx"),
    route('fetcher-test', "pages/fetcher-test/index.tsx"),
    route('session-test', "pages/session-test.tsx"),
    route('login', "pages/login.ts"),
    route('logout', "pages/logout.ts"),
    
    ...prefix('blogs', [
      route('fetcher-test', "pages/fetcher-test/blogs.tsx"),
      route('stream', "pages/stream/index.tsx"),
    ])
  ]),
  route("/.well-known/*", "pages/well-known.tsx")
] satisfies RouteConfig;
